import { http } from '@/utils/axios';

export function pageDict(data: Dict.QueryDictReq) {
  return http.request({
    url: '/v1/basic/dict/page',
    method: 'POST',
    data,
  });
}

export function create(data: Dict.SysDict) {
  return http.request({
    url: '/v1/basic/dict/create',
    method: 'POST',
    data,
  });
}

export function modify(data: Dict.SysDict) {
  return http.request({
    url: '/v1/basic/dict/modify',
    method: 'POST',
    data,
  });
}

export function remove(id: string) {
  return http.request({
    url: `/v1/basic/dict/${id}`,
    method: 'DELETE',
  });
}
